import { Component, OnInit } from '@angular/core';

@Component({
  selector: 'app-invite',
  templateUrl: './invite.component.html',
  styles: []
})
export class InviteComponent implements OnInit {

  users = [{ id: 1, name: "gainorloss" },
  {id:2,name:"ZhangJian"}];
  constructor() { }

  ngOnInit() {
  }
  diaplayUser(user: { id: number; name: string }) {
    console.log(user);
    return user ? user.name : "";
  }
}
